/*
 * GameManager_test.cpp
 *
 *  Created on: Apr 24, 2014
 *      Author: GW
 */

#include "src/TestMacros.h"
#include "src/CheckMacros.h"
#include "src/TestRunner.h"
#include "src/TimeConstraint.h"
#include "src/ReportAssert.h"

#include "GameManager.h"

SUITE(GameManager)
{
	TEST(adjustChargePoint)
	{
		GameManager* gm = new GameManager();

		//check maximum limit
		CHECK_EQUAL(gm->adjustChargePoint(9999), true);
		CHECK_EQUAL(gm->getChargePoints() == 10, true);

		//check minimum limit
		CHECK_EQUAL(gm->adjustChargePoint(-500), false);
		CHECK_EQUAL(gm->getChargePoints() == 10, true);

	}
}


